#ifndef cPUT_H_
#define cPUT_H_
/*********************************************************/
class cMsg;

#include "cMsg.h"
#include <Poco/DOM/NodeIterator.h>
#include <string>

#define MAX_BUFFER	4096		// Maximum allowed char buffer for command output
/*********************************************************/
class cPut : public cMsg
{
private:
	// Friend classes
	friend class cMsg;

	// Variables
	std::string		file;			// Command to execute in the system shell
	std::string		host;			// The host that requested the upload

	// Methods
	void deserialize(Poco::XML::NodeIterator&);	// Deserializes an execute job

protected:
public:
	// Control Methods
	virtual std::string serialize() const;		// Serialize the job to an xml string
	virtual void execute();

	// data set/get pairs
	void setFile(const std::string&);		// Sets the command for this job
	std::string getFile() const;			// Returns the command for this job
	void setHost(const std::string&);		// Sets the host that requests the file upload
	std::string getHost() const;			// Returns the host that requested the file upload	
};
/*********************************************************/
#endif // cPUT_H_
